// Raf Lempens & Bjorn Schobben
#include "Treadmill.h"
#include "ActivateAbility.h"

Treadmill::Treadmill(unsigned int initialCellX, unsigned int initialCellY): GameObject(initialCellX, initialCellY), activateAbility(0)
{
	// Setup abilities
	activateAbility = new ActivateAbility(this);

	AddAbility(activateAbility);

	// Setup behaviour
	behavior.SetActivator(this);
}

Treadmill::~Treadmill()
{
	if (activateAbility)
	{
		delete activateAbility;
		activateAbility = 0;
	}
}

void Treadmill::SetPushDirection(const Direction& direction)
{
	pushDirection = direction;
	behavior.SetPushDirection(direction);
}

void Treadmill::Activate()
{
	printf("Treadmill activated\n");
}

GameBehavior* Treadmill::GetBehavior()
{
	return &behavior;
}

